home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Varios Español
/
Varios Español.iso
/
DBASE5
/
TEMPLATE.ZIP
/
CM_UDF.COD
< prev
next >
Wrap
Text File
|
1994-10-12
|
2KB
|
96 lines
//
// Module name: CM_UDF.COD
// Description: Common user defined functions for all the templates
//
{
define display_type()
//-------------------------------------------------------------------
// DESCRIPTION
// Find out the display type we are working on
//-------------------------------------------------------------------
var temp;
case display of
mono: temp = "MONO"
cga: temp = "COLOR"
ega25: temp = "EGA25"
mono43: temp = "MONO43"
ega43: temp = "EGA43"
vga25: temp = "VGA25"
vga43: temp = "VGA43"
vga50: temp = "VGA50"
endcase
return temp;
enddef
//-- EOF: display_type()
define Set_Screen_Mode()
//-------------------------------------------------------------------
// DESCRIPTION
// Set the screen display mode based on the one that was used
// for code generation.
// VARIABLES
// scrn_size = screen size, if >= to 39 need to shift
//-------------------------------------------------------------------
var d_mode,
is_form,
disp_var;
is_form = FRAME_CLASS == form;
disp_var = ( is_form ? "lc_display" : "gc_display" );
d_mode = display_type();
if at( "50", d_mode ) then
}
SET DISPLAY TO VGA50
{
else
if at( "43", d_mode ) then
}
*-- Si no se está ya en modo de 43 líneas, establecerlo basándose en MONO o EGA
IF .NOT. "43" $ {disp_var}
IF "MONO" $ {disp_var}
SET DISPLAY TO MONO43
ELSE
SET DISPLAY TO EGA43
ENDIF
ENDIF
{
endif
endif
return;
enddef
//-- EOF: Set_Screen_Mode()
define screen_size()
//-------------------------------------------------------------------
// DESCRIPTION
// Determine the current screen size based on the _flgcolor setting.
// Assume that the status bar is on.
//
// VARIABLES
// scrn_size = global variable that indicates the screen size.
//-------------------------------------------------------------------
display = numset(_flgcolor)
if display == ega43 || display == mono43 || display == vga43 then
scrn_size = 39
else
if display == vga50 then
scrn_size = 46
else
scrn_size = 21
endif
endif
return;
enddef
//-- EOF: screen_size()
}
//-- EOP: CM_UDF.COD